package com.prs.crm.domain.crm;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * 设备
 * @author zhoupeng 2012-2-29
 *
 */
@Entity
@Table(name="crm_equipment")
public class Equipment extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	@Id@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	
	private String name;  //设备名称
	private String damaged;  //损坏状况
	
	@ManyToOne
	private Fault fault;  //关联故障信息

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDamaged() {
		return damaged;
	}

	public void setDamaged(String damaged) {
		this.damaged = damaged;
	}

	public Fault getFault() {
		return fault;
	}

	public void setFault(Fault fault) {
		this.fault = fault;
	}
	
	
}
